package exercise;

import java.util.Scanner;

public class Q41_Q42_Q43 {

	public static void main(String[] args) {
		// #41
		char letter = 'B';
		switch (letter) {
		case 'A':
		case 'a':
			System.out.println("Some kind of A.");
		case 'B':
		case 'b':
			System.out.println("Some kind of B.");
			break;
		default:
			System.out.println("Something else.");
			break;
		}
		
		// #42
		int count = 0;
		int limit = 10;
		int x = 1;
		int y = 2;
		System.out.println((count == 0)&&(limit<20));
		System.out.println(count==0 && limit<20);
		System.out.println((limit>20)||(count<5));
		System.out.println(!(count==12));
		System.out.println((count==1)&&(x<y));
		System.out.println((count<10)||(x<y));
		System.out.println(!(((count<10)||(x<y))&&(count>=0)));
//		System.out.println(((limit/count)>7)||(limit<20));
		System.out.println((limit<20)||((limit/count)>7));
//		System.out.println(((limit/count)>7)&&(limit<0));
		System.out.println((limit<0)&&((limit/count)>7));

		
		// #43
		int key = 1;
		switch (key+1) {
		case 1:
			System.out.println("Apples");
			break;
		case 2:
			System.out.println("Oranges");
			break;
		case 3:
			System.out.println("Peaches");
		case 4:
			System.out.println("Plums");
			break;
		default:
			System.out.println("Fruitless");
			break;
		}
		
		
		
		
		
	}
	
}
